package com.spring.demo5.eg1;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author vhans
 */
@Configuration
// 表示当前配置类不会被处理
@Conditional(MyCondition1.class)
public class MainConfig1 {

    @Bean
    public String name() {
        return "Vhans";
    }
}
